From: Andrew Garrett
Date: Thu, 19 Mar 2009 06:17:18 +0000 (+0000)
Subject: Parser tests for date autoformatting
X-Git-Tag: 1.31.0-rc.0~42446
X-Git-Url: http://git.cyclocoop.org/%28%5B%5E/404?a=commitdiff_plain;h=d59ce8d0c6cf27d81fbedda333e9826edf7230a4;p=lhc%2Fweb%2Fwiklou.git
Parser tests for date autoformatting
---
diff --git a/maintenance/parserTests.txt b/maintenance/parserTests.txt
index 7a30eac770..9ce0d02417 100644
--- a/maintenance/parserTests.txt
+++ b/maintenance/parserTests.txt
@@ -7251,6 +7251,33 @@ Multibyte character in padright
!! end
+!! test
+Formatted date
+!! input
+[[2009-03-24]]
+!! result
+2009-03-24
+
+!!end
+
+!!test
+Formatted unlinked date
+!!input
+{{formatdate:2009-03-24}}
+!! result
+2009-03-24
+
+!! end
+
+!!test
+Formatted unlinked date with default format
+!!input
+{{formatdate:2009-03-24|mdy}}
+!! result
+March 24, 2009
+
+!! end
+
#
#
#